package ac.github.os.internal.core.holder.player

import ac.github.os.internal.core.holder.EventHolder
import org.bukkit.event.Event
import org.bukkit.event.player.AsyncPlayerChatEvent

class PlayerChatHolder(override val event: AsyncPlayerChatEvent) : EventHolder<AsyncPlayerChatEvent> {
    override val namespace: String
        get() = "player chat"

    override fun variable(string: String): String? {
        return when(string) {
            "val" -> event.message
            else -> ""
        }
    }
}